package com.lier.gulimall.product.feign;

import com.lier.common.to.SkuReductionTo;
import com.lier.common.to.SpuBoundsTo;
import com.lier.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * @author liyd
 * @description 优惠券服务远程调用
 * @date 2025/6/16 14:58
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 远程调用优惠券服务保存积分信息
     * @param spuBoundsTo 积分信息对象
     * @return 远程调用返回
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    /**
     * 远程调用优惠券服务
     * @param skuReductionTo 请求对象
     * @return 请求结果
     */
    @PostMapping("coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
